<%@page contentType="text/html;utf-8" pageEncoding="utf-8" isELIgnored="false" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
  hello shiro<a href="${pageContext.request.contextPath}/user/logout">退出</a>
<h3>系统主页</h3><a>欢迎：<shiro:principal></shiro:principal></a>

<ul>
    <li><a href="">用户管理</a></li>
    <shiro:hasRole name="user">
        <li><a href="">订单管理</a></li>
         <ul>
             <shiro:hasPermission name="user:delete:*">
                 <li><a>删除</a></li>
             </shiro:hasPermission>

             <shiro:hasPermission name="product:*:*">
                 <li><a>添加</a></li>
             </shiro:hasPermission>
         </ul>
    </shiro:hasRole>

        <shiro:hasRole name="admin">
        <li><a href="">商品管理</a></li>
            <shiro:hasPermission name="user:*:*">
                <li><a href="">2管理</a></li>
            </shiro:hasPermission>
            <li><a href="">3管理</a></li>


        </shiro:hasRole>





</ul>
</body>
</html>

